package cn.com.yky.domain;

import cn.com.yky.domain.share.Score;

import javax.persistence.Entity;

/**
 * Created by zhengmin on 2017/2/4.
 */
@Entity
public class UnionScore extends Score{

    private Integer year;
    private Integer month;

    /**
     * 被刺考试排名
     */
    private Integer allRank;

    private boolean isPublic;

    public UnionScore() {
    }

    public UnionScore(UnionExam unionExam){
        this.setExamId(unionExam.getId());
        this.year = unionExam.getYear();
        this.month = unionExam.getMonth();
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getAllRank() {
        return allRank;
    }

    public void setAllRank(Integer allRank) {
        this.allRank = allRank;
    }

    public boolean isPublic() {
        return isPublic;
    }

    public void setPublic(boolean aPublic) {
        isPublic = aPublic;
    }
}
